<?php
if($aik_cache=='1'){include('./common/cache.php');}
if(isset($username)){$username=$_COOKIE["username"];} 
include './rule/cx_list.php';
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="cache-control" content="no-siteapp">
<title>视频列表-<?php echo $aik_title;?></title>
<meta name="keywords" content="<?php echo $aik_keywords;?>">
<meta name="description" content="<?php echo $aik_desc;?>">
<link rel='stylesheet' id='main-css'  href='<?php echo $aik_domain;?>template/<?php echo $template;?>/css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='main-css'  href='<?php echo $aik_domain;?>template/<?php echo $template;?>/css/movie.css' type='text/css' media='all' />
<script type='text/javascript' src='http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js?ver=0.5'></script>
<!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
</head>
<body>
<?php  include 'aik_head.php';?>
<section class="container"><div class="fenlei">
<div class="b-listfilter" style="padding: 0px;">

<dl class="b-listfilter-item js-listfilter" style="padding-left: 0px;height:auto;padding-right:0px;">
<dd class="item g-clear js-listfilter-content" style="margin: 0;">
<a href="./index.php?mode=cxlist" >全部</a>
<?php  
$num=count($list['list']);
if ($num>24){$num=24;}
for($i=0; $i<$num; $i++){
    if (mb_strpos($list['list'][$i]['list_name'], '福利') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '韩国主播VIP视频') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '电影') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '连续剧') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '电影片') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '伦理片') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '伦理') === false) { 
    if (mb_strpos($list['list'][$i]['list_name'], '写真视频') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '美女视频') === false) {
    if (mb_strpos($list['list'][$i]['list_name'], '美女写真') === false) {
?>
    <a href="./index.php?mode=cxlist&net=<?php echo $list['list'][$i]['list_id'];?>"><?php echo $list['list'][$i]['list_name'];?></a><?php }}}}}}}}}}}?>  
<?php
$result = mysql_query('select * from aikcms_videogroup  order by id desc');
while ($row = mysql_fetch_array($result)){
			echo '<a href="./index.php?mode=cxlist&vod='.$row['id'].'">'.$row['aik_videogroup_name'].'</a>';
		}
?> 
</dd>
</dl>
</div>
</div>
<div class="m-g">
<div class="b-listtab-main">
<div>
<div>
<div class="s-tab-main">
<ul class="list g-clear">
<?php
if($aik_union_open<>'0'){
include './rule/union.php'; 
 for ($i=0; $i < 6; $i++) {
    $k=$num[$i];
	  $yhq=$daiq[$k]-$daih[$k];
		?>
 <style>.s0{word-wrap: break-word;font-size: 13px;color: #999;width: 190px;height: 40px;line-height: 15px;}
		  </style>
		  <li  class='item'><a class='js-tongjic' href='<?php echo $unionurl.$iidd[$k].$unionid?>' title='<?php echo $name[$k]?>' target='_blank'>
         <div class='cover g-playicon'>
          <img src='<?php echo $img[$k]?>' alt='<?php echo $name[$k]?>' />
          <?php if(empty($unionid)){ ?>
          <span class='pay' style=' width:auto;background:#ff435e; padding:0 10px;'>优惠券：<?php echo $yhq?>元</span>
           <?php } ?>
		  <span class='hint' style='right:50px;'>券后价￥</span>
		  <span class='hint' style='background:#fef07e;width: 40px; height:30px; line-height:30px;text-align: center; font-size:14px; font-weight:bold; color:#ff435e;'><?php echo $daih[$k]?></span>
         </div>
         <div class='detail'>
          <p class='title g-clear' style=' margin-top:5px;'>
		    <span class='s0'><?php echo $name[$k]?></span></p>
          </div>
	</a></li>
<?php }}
if($aik_fresh_on=1){?>
<?php
    for($i=0; $i<18; $i++){
    if (mb_strpos($data['data'][$i]['list_name'], '美女写真') === false) {
    if (mb_strpos($data['data'][$i]['list_name'], '伦理片') === false) {
    if (mb_strpos($data['data'][$i]['list_name'], '福利') === false) {
    if (mb_strpos($data['data'][$i]['list_name'], '伦理') === false) {
	if (mb_strpos($data['data'][$i]['list_name'], '论理') === false) {
    if($aik_weijing==1){
    $link='./vid/'.$data['data'][$i]['vod_id'].'.html';  
    }else{
    $link='./index.php?mode=play&vid='.$data['data'][$i]['vod_id'];
    }
    ?>
<li class="item">
    <a class="js-tongjic" href="<?php echo  $link;?>" title="<?php echo $data['data'][$i]['vod_name'];?>" target="_blank">
<div class="cover g-playicon">
<img src="<?php echo $data['data'][$i]['vod_pic'];?>" alt="<?php echo $data['data'][$i]['vod_name'];?>">
</div>
<div class="detail">
<p class="title g-clear">
 <span class="s1"><?php echo $data['data'][$i]['vod_name'];?></span>
 <span class="s2"></span></p>
<p class="star">主演：<?php echo $star=$data['data'][$i]['vod_actor']=''?'未知':$data['data'][$i]['vod_actor'];?></p>
 </div>
</a>
</li>
        <?php }}}}}}?> 
<?php
}else{	
if($vod){
if((in_array(aik_user_usergroupid($username), explode(",", get_video_usergroup($vod))))||(get_video_usergroup($vod)=='0')){
$sql = 'select * from aikcms_video where `aik_video_group`='.$vod.'  and  `aik_video_url`<>""  order by id desc';
$pager = page_handle('page',15,mysql_num_rows(mysql_query($sql)));
$result = mysql_query($sql.' limit '.$pager[0].','.$pager[1].'');	                           
while($row= mysql_fetch_array($result)){
	
	    $video_usergroupid = get_video_usergroup($row['aik_video_group'])== '0' ? $row['aik_video_usergroup']:get_video_usergroup($row['aik_video_group']);
	    $array_video_usergroup = explode(",", $video_usergroupid); 	
        if ((in_array('0', $array_video_usergroup))&&(in_array('0', $array_video_usergroup))&&(!aik_video_buy($row['id'],$userid))&&($row['aik_video_int']<>0)){
        $point="onclick=\"return confirm('观看此视频需要支付".$row['aik_video_int']."积分，您是否观看？')\"";}else{$point="";}
if($aik_weijing==1){
$link='./vod/'.$row['id'].'.html';	
}else{
$link='./index.php?mode=play&vod='.$row['id'];
}
			echo '<li class="item"><a href="'.$link.'" '.$point.'><div class="cover g-playicon"><img src="'.$row['aik_video_img'].'" /><span class="hint">'.$row['aik_video_remarks'].'</span></div><div class="detail"><p class="title g-clear"><span class="s1">'.$row['aik_video_name'].'</span></p></div></a></li>';
}}else{alert_back('该视频分组仅支持 / '.aik_video_usergroup(get_video_usergroup($vod)).'观看！');} 
}else{
$sql = 'select * from aikcms_video where  `aik_video_url`<>""  order by id desc';
$pager = page_handle('page',18,mysql_num_rows(mysql_query($sql)));
$result = mysql_query($sql.' limit '.$pager[0].','.$pager[1].'');	                           
while($row= mysql_fetch_array($result)){	
        $video_usergroupid = get_video_usergroup($row['aik_video_group'])== '0' ? $row['aik_video_usergroup']:get_video_usergroup($row['aik_video_group']);
	    $array_video_usergroup = explode(",", $video_usergroupid); 	
        if ((in_array('0', $array_video_usergroup))&&(in_array('0', $array_video_usergroup))&&(!aik_video_buy($row['id'],$userid))&&($row['aik_video_int']<>0)){
        $point="onclick=\"return confirm('观看此视频需要支付".$row['aik_video_int']."积分，您是否观看？')\"";}else{$point="";}
		if($aik_weijing==1){
        $link='./vod/'.$row['id'].'.html';	
        }else{
        $link='./index.php?mode=play&vod='.$row['id'];
        }
		echo '<li class="item"><a href="'.$link.'" '.$point.'><div class="cover g-playicon"><img src="'.$row['aik_video_img'].'" /><span class="hint">'.$row['aik_video_remarks'].'</span></div><div class="detail"><p class="title g-clear"><span class="s1">'.$row['aik_video_name'].'</span></p></div></a></li>';
	
}}}



?>
        </ul>
                </div>
    </div>
</div> 
<br>
<div style="clear: both;"></div> 
<?php
echo '<div class="ew-page">';
if($aik_fresh_on=1){
if(!empty($_GET['net'])){
    $cid=$_GET['net'];
    $c="net=".$cid;}
    else{$c="";}
if($_GET['page'] != 1){
     echo '<a href="./index.php?mode=cxlist&'.$c.'&page=1">首页</a>';
     echo '<a href="./index.php?mode=cxlist&'.$c.'&page=' . ($_GET['page']-1) .'"><</a>';
     } else {
echo '<a href="./index.php?mode=cxlist&'.$c.'&page=1">首页</a>';
}
if($_GET['page'] == 1){
    echo '';
}else
echo '<a href="./index.php?mode=cxlist&'.$c.'&page='.($_GET['page']-1).'">'.($_GET['page']-1).'</a>';
echo '<a href="./index.php?mode=cxlist&'.$c.'&page='.($_GET['page']).'" class="on">'.$_GET['page'].'</a>';
if($_GET['page'] == 25){
    echo '';
}else
echo '<a href="./index.php?mode=cxlist&'.$c.'&page='.($_GET['page']+1).'">'.($_GET['page']+1).'</a>';

if($_GET['page'] < 25){
     echo '<a href="./index.php?mode=cxlist&'.$c.'&page='.($_GET['page']+1).'">></a>';
     echo '<a href="./index.php?mode=cxlist&'.$c.'&page=25">尾页</a>';
     } else {
echo '<a class="disabled">尾页</a>';
} 
}else{
echo page_show($pager[2],$pager[3],$pager[4],2);		
}
echo '</div>';
?>  

</div></div>
<div class="asst asst-list-footer"><?php echo aik_gg(3);?></div></section>
<?php  include 'aik_foot.php';?>
</body></html>